package com.jswdwsx.esign.protocol.request

data class AddDocs2FlowReq(
    val docs: Array<Doc>
) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as AddDocs2FlowReq

        if (!docs.contentEquals(other.docs)) return false

        return true
    }

    override fun hashCode(): Int {
        return docs.contentHashCode()
    }
}

data class Doc(
    val fileId: String,
    val encryption: String? = null,
    val fileName: String? = null,
    val filePassword: String? = null
)
